package com.ruoyi.manipulator_certification.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manipulator_certification.mapper.ManipulatorCertificationMapper;
import com.ruoyi.manipulator_certification.domain.ManipulatorCertification;
import com.ruoyi.manipulator_certification.service.IManipulatorCertificationService;

/**
 * 飞手认证Service业务层处理
 * 
 * @author jx
 * @date 2025-05-20
 */
@Service
public class ManipulatorCertificationServiceImpl implements IManipulatorCertificationService 
{
    @Autowired
    private ManipulatorCertificationMapper manipulatorCertificationMapper;

    /**
     * 查询飞手认证
     * 
     * @param id 飞手认证主键
     * @return 飞手认证
     */
    @Override
    public ManipulatorCertification selectManipulatorCertificationById(Long id)
    {
        return manipulatorCertificationMapper.selectManipulatorCertificationById(id);
    }

    /**
     * 查询飞手认证列表
     * 
     * @param manipulatorCertification 飞手认证
     * @return 飞手认证
     */
    @Override
    public List<ManipulatorCertification> selectManipulatorCertificationList(ManipulatorCertification manipulatorCertification)
    {
        System.out.println(manipulatorCertification);
        return manipulatorCertificationMapper.selectManipulatorCertificationList(manipulatorCertification);
    }

    /**
     * 新增飞手认证
     * 
     * @param manipulatorCertification 飞手认证
     * @return 结果
     */
    @Override
    public int insertManipulatorCertification(ManipulatorCertification manipulatorCertification)
    {
        manipulatorCertification.setCreateTime(DateUtils.getNowDate());
        return manipulatorCertificationMapper.insertManipulatorCertification(manipulatorCertification);
    }

    /**
     * 修改飞手认证
     * 
     * @param manipulatorCertification 飞手认证
     * @return 结果
     */
    @Override
    public int updateManipulatorCertification(ManipulatorCertification manipulatorCertification)
    {
        manipulatorCertification.setUpdateTime(DateUtils.getNowDate());
        return manipulatorCertificationMapper.updateManipulatorCertification(manipulatorCertification);
    }

    /**
     * 批量删除飞手认证
     * 
     * @param ids 需要删除的飞手认证主键
     * @return 结果
     */
    @Override
    public int deleteManipulatorCertificationByIds(Long[] ids)
    {
        return manipulatorCertificationMapper.deleteManipulatorCertificationByIds(ids);
    }

    /**
     * 删除飞手认证信息
     * 
     * @param id 飞手认证主键
     * @return 结果
     */
    @Override
    public int deleteManipulatorCertificationById(Long id)
    {
        return manipulatorCertificationMapper.deleteManipulatorCertificationById(id);
    }
}
